package com.ssm.mssm.function;

import com.ssm.mssm.entity.InformationEntity;
import com.ssm.mssm.web.handler.ao.InformationAo;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by asus on 2017/7/14.
 */
public interface InformationFunction {
    InformationEntity showInformation(String id) throws Exception;

    List<InformationEntity> selectAllInformation() throws Exception;

    InformationEntity select(String id) throws Exception;

    List<InformationEntity> queryInformation(String username) throws Exception;
    @Transactional
    InformationEntity addInformation(InformationAo ia) throws Exception;
    @Transactional
    InformationEntity delectInformation(String username) throws Exception;
    @Transactional
    InformationEntity updateInformation(String id,InformationAo ia)throws Exception;
    @Transactional
    List<InformationEntity> selectLikeInformation(String string) throws Exception;

    InformationEntity login(String account, String password) throws Exception;

    @Transactional
    InformationEntity updatePassword(String id,InformationEntity ie)throws Exception;
}
